fixes last commit error with auto-pair mode