Fixed error in tabComplete