finally fixes the postgres problem