fixed bug in Pg_Data, more info in docs