[units] Fix syntax error

Someone changed the conditions and forgot to test his code before committing