fixed correct variable name when const build