fix to pilots query