sync example code with real ones
fix for model init condition