fixed a bug at device/share

Change-Id: I89bf445df8f8c11bcd2826c65fb79502774aace0