solved bugs on locationsid