Fixed update bug

fixed update bug
added grep