fixed bug in stack if created from options