fixed int parsing error