Only clear if flag is set.