Fix ready event