pg error fixed