fixed filename handling for multipage sheet

Can now access sheets with #gid other than zero, by design only
accesses primary page of multipage sheet