Debugging error where same pilot is displayed multiple times