Fix pyquery issue