Fixing post queries