Init model script bugfix