Fix error when status is updated when status is null