Fix incorrect onstatechange listener firing