Fix a minor typo and correct the type for vread() to make it work