Events are not fired when the component is appended to the DOM - Fix #1