Fixed an issue which prevented saving the last used view type.