Fixed NullPointerException.