fix device loading npe checking for fragment