Fix metrics flapping value

Fix a bug where failing checks where reported as flapping