Fix passing ending turns prematurely