fixed wireitem selection misbehaviour : now when bounding boxes overlap, the smallest bounding box wire is selected. fixed bugs