fix bug in save build status