Fixed wrong condition.