fixed init env bug for thumb