fix a bug for flip tile line breaking