fixed a stupid bug in software rollback