fix throw error