fix architecture bug