Refactored and fixed uow interceptor.