this fix a problem when trying to scan a location inside the opened modal to change location from a product