fix boundingx box bugs