fix an issue with .ready