fixes device mode