A fix of NullPointerException