Fix library files
Fix getViewModes calls