fixed empty catch block