Fixed the potential overflow in the Slug() function.