fixed pg error, and inadvertantly the tab error