Bind event correctly.