Fixing tableN condition.