fix warning
fix warning
add isReady flag