fix error messages in getdata