sphinx patch