prevent NullPointerException.