fix catch statement