Fix destination tag type issue. Fixes #1067.