fixed overflow/underflow of Treemap.layout