Defensive bug fix.