fixed msvc warnings in frontend