Fix for recording the last chars