fixed ready callback