flatten before remove_identity
fix gesvlaswp