fixing bugs when attempted to rollback incorrectly.