fix bug with stack option

Fixed bug where setting the option "stack: false"  resulted in stacking being used