Fix bug in target_arch param

Change-Id: I0dd876dc934ac91fc8f78b49e9da21d46a53d75d