corrections in getCommand
correct processing "current table"