Fixed multiple InvocationTargetException error