Fix wrongly named variable
Remove not used debugging code