fix tail completion