deviceready fix