fix bug introduced in 'cleanup' commit