Fix missing ref