fixed potential bug in RT query; removed unnecessary block variable
added index to FreeResponse on StudentExercise