Fixed logic in conditional for no-op operations.