get attribute of null bug fix