I was rewriting XML so that's why device got created