Fix rollback on invalid record after set