fixed bug in stacker