Fix errors to allow a stack