fix runtime crash