fix throw exception