fixed stack initialization