fix interceptor code