Hi Jose,
Check the type of program where you written the code . It should of type 'include' .
I'm guessing , since you mentioned that if you use 'START_OF_SELECTION' its getting activated , then it could be because of different program type .
Check - Report - > Goto ->Attributes
Regards,
Arun