Tail modified bug fixed