Fix semantic error when updating the status