Fixed deprecated code (as of release 0.12.5).