fix stack filter bug