Fix invalid finishOnKey