fix bug in interceptor checking api requests