Fixing a reference error (for the second time)