fixed dart2js compiler warnings