fix check-update bug: irregular output