Bug fix in managed.cpp, created value was not assigned