correct handle of viewMode initialization in string version