Fix problem with triggering event on inner model. Close #38