fixed SQL in browse