Fix app_cmd message garbage bug