fix runtime crash issue