fix sub-command build