Fix NullPointerException.
Fix NullPointerException.