fixed bug in validateOverlapping