try to fix the null pointer