Corrected integer bug