on device ready fix