move id replace before stack_duplicates logic
remove whitespace
Merge pull request #183 from nopjmp/stack-replace-fix

Notifcations that replace another still 'stack'