fix update status bar was updating even when there were errors