Fix typo resulting in reference errors