Fix error due to missing catch