fix warning and error source map