fixed bug in bounding box creation (start point was not considered)