Minor fix on erosion