Fix logic on foreman saving report