Fixed an error where the ready event might be triggered more than once.