Bug Fix in Quit Command