added another try-catch statement to catch some weird error