Fix debug statement to prevent exception and binding restart