fix exception layouts