bug fix for update command