Fix conditional depending on unitialized value error.