fix a compatibility issue with jade