fixing unclosed attributes error