tail: fix little errors