Fixed problem with try-expect blocks