fix level 3 msvc compiler warnings + some crash issues with Labels