reference bug fix.