fixed clang compile warnings due to wrong const position