added Controller.dll unload error fix
added reseting pointers