some bug removed thx to the contribute of Alessandro Furieri (http://www.gaia-gis.it/gaia-sins)