fixed bug with parseInt