fixed encoding at the attributes