fixed the 'false' bug when entering location