fixed a bug that happened on chrome mobile related to trying to parse an int as a double