fix calc command weird bug