Fixed some location errors.
Fixed attribute locations.