Fix tail output