Fix reference parsing
Fix reference parsing