fixed bug in int parsing