Fix underflow problem in inside_slug