Fix and test int parse crash