Reference bug fix.