replace:dist bugfix