fixed matrix expo bug