Hack to handle overflow/underflow in kernel functions