Fixed a bug in adding a location in the builder