Yes, it solved the problem!
I don’t think there is anything wrong with your code. Eric Meyer has written about this. There is a bug in the validator. According to the Eric’s comment on the bugreport you could try adding a decimal, ie "1.0"
Hope this helps