Fix validation error with fig caption