Fix a possible overflow