Fixes bugs with 'processed' event on element