fixed pg problem