Fixed wrong exception in ObjectMixin