Implemented the correction against underflows.