fixed bug in adding locations