Stack only init fix

I haven't written a test, but I need the practice with Git so I'm creating this pull request. You can ignore it if you want.