Fixed bug which seems to occurr with some shapely versions