Fixed the error on the first tail