fix watchfile trigger more than one times