Fixed bug in OOBB generation