fixed computeBounds