fixes error in makeviewerconfig