fix eror in debug message, which shows wrong variable