fix variable name in debug mode