Fixed NULL area bug