fixed path clearing problem