bug fix for edit section of location check