Resolved the bug. Change the manager objects to singleton.