Corrected the bug that was leading to unprintable characters