fix robot statusupdate function