scala version compatibility fix