Fixed bug where new inventory entry location was being created when editing inventory at same location