fix exceptions.