fix exception rescue