fixes #224 (simple viewer broken)