Fix exceptions in exec parsing