Bugfix in console create models functions