fix bug:run time exception