Fixing attching events with default actions