fixing tail