fixed some bugs with versions of devices