fix rescue clause