Fixed "Invalid Integer Value" bug the script seemed to be getting. Fixes #31