Fix bug in bbox filtering