minor bugfixes to the surgery recording interface