Fix error with pg gem