fix architecture selection bug