Corrected try block