Fix problem reported by Francisco Vannini https://groups.google.com/d/topic/idempiere/qwvi1WLzirI/discussion