pg error fixed hopefully