Fix event handler function; bind considered incorrect here.