fixed on_change hook when file was removed