Fix the not appearing references

A rather simple fix for a really annoying bug. How could this happen at all?