Fixes device model and version switch issue.