Fixed some parseint errors in main