fix bug of exception