Null reference fix.