fixing bug in interceptor