fix for amount sometimes parsing as string for visit table