controller: fix error on history marking