version & deviceid fix