Corrected reference before definition