fixed bug that causes events out of scope to be fired