fix for device ready