Fixed an error uploading StateMatrix in example003