Re fix updateStatus func