Fixed Deviceready Event bug