Fix TailCommand bug #4423

Fixes #4423