fix ondeviceready