fix bug from tri cross compile