'clean' button doesn't work in UI (undefined method #first for nil fix)