make locations work regardless of where in three used. re #6181

by fixing a bug had introduced