Fixing bug in create_instance_params