fix compiler for new CS version