fix homescreen nullpointer issue