fixes int parsing