fixed bug with gotdata