Bugfix: Sample Index undefined when first entering the database view
form.