Fix for TOD when BOD is followed by level flight