unfucked gems to fix pg error