format swap as a workaround for LP: #1320702