Fix the not appearing references

A rather simple fix for a really annoying bug. How could this happen at all?

@antis81: Please review and merge this stupidity...