fix thrown for exception