loader: Fix bug on pass by value for created_instance
3 files changed