fixed stupid query