fix bug of not reset modified