fixed parser returning list if encountering an int