$controller->clear() is simpler and more robust