fix rare crash