Fix bug introduced in 9335343 where wrong command_type was getting passed.