fix bug with sourcemaps.