fix create device