fix ready event removal error