fix wrong position of attribute modification