Fix bug in StackModel