fix rare npe