fix for the overflow