Quick fix to make pg work in forks