minor bug to set status