fix when there are number in the lastcmd