fix update bug in commander example