fixed int parsing