bug with arch check