Fix of broken onDeviceReady