Fixed unlikely NullPointerException.