Fix wrong variable name in when: condition