minor fix to tail()