solve a the null bug