create device bug fix