Something seems completely off with your system. Please have a look at this example, it contains the thing you are trying to do right at the beginning of the rule and is working. Maybe you could try this one with your setup?
Can you tell us more about your system? Is this your first rule or do you have a big setup working fine? Maybe the file is wrongly formated? Could you try building your rule anew?