Fix segfault because of deprecated code.