Fix int errors