Fix cleanup command backend error

Cleanup command was broken since my last PR for doctrine backend