condition bug correction