bugfix for creating new locations