Fixed bug in sopmaker and conditions
Fixed bug in model history