fix error when status has been changed