fix bounds compute