Fixed menu exit bug.