fix begin rescue block