Fixed quitting error.