Dead reference bug fix.