Fix some things preventing the AI training properly