minor fix template add-device