fix rare fatal error