Fix truncation within SGR