exit bug fixed