Quieting compiler warnings and fixing tag overwrite problem