Bugfix in the vm update_status function