Fix modelCreate function in example