fix compiler ICEs