Try cutting and pasting your code to somewhere else, deleting it, and compiling "int foo". Then try editing your properties to be the way you want it, and put your code back in fragment.
Other thoughts: You didn't rename the script, did you? That can make things wonky.