Fixed a few unused references