fix location attributes