try stopPropagation instead of stopImmediatePropagation