Bugfix for clean.php