fixed the hide show location bug