fixed bug on devices form.