fixed loading npe