fixed catch statement