Corrected onReady routing.