Fixed bug with MockInstance