Use sane ready event. Fixes #21