Fixed overflow handling compile bug