Fixed bugs in rollbackcommand.php