Fix bug in one liner conditional