Fixed caching issue.

Fixed caching issue when changing the number of shots to show.