Fix bug in study mode dialog