fix application stack being backwards