Stop flex from sometimes printing 'random' characters to stdout