Fixes location adding bug