corrected the bug with the base of parseInt in Firefox