[FIX] Bugfix on create_instance function
[FIX] Bugfix on create_instance function