fix the dispatch order of checkbox events

http://osc.matsukei.net/issues/471 fixes #471