Fix deviceType