Fixed overflow

Fixed the overflow