Remove of debugging code

Code used to check for errors slept into commit. Fixed.