fixed catch statement
