fix error of add command