Resolved bug in condition