This might cause problems:
sizes[0] = 0.001;
Try to set it to 0 (same thing really), don't make long decimal digits. They tend to screw up for some reason.
If it still doesn't work then this might be doing it:
thetaMax = 0.5;
The engine might not like decimals in degree angles, try setting this as a whole number if the size[0] value change doesn't work.