fixing issue with binding to multiple events in one call