small condition fix