Fixed bug where the history type could get lost for a widget on a saved dashboard