some bugfixes in ansi rendering