fixes handling of attribute without value