Bug fixed

When no class was assigned with the create function
Merge branch 'pr/1'