fix study view to get study history intelligently