fix runtime eror