fixed bug where median would not be autoselected when page is refreshed