fixed attribute parsing