Fixing select query trajectory.