Fixed failures in stack creation