Fixed the crash on injecting