• fixed a bug when running the viewer in an iFrame