Bug somewhere in checkCondition method.