Fixed #247. on_model_change now accepts third parameter is_created