Fix last_cmd_type_

Change-Id: Ifa31103e1707f4378f36158ad2e8d8569fdeefad