fixed debug log causing an error.