lifecyle null bug fixed