Fix parsing of integers