Fix tips width out of bound issue