fixed issue parsing amount as string rather than and int