closed_locs bug fixed