fix sphinx mode setup