[misc] Fixed viewmode display issues caused by wrong variable name