fix on postgres