Bug fix for esc_mode not reseting after "