fixes for issue #77 (lightbox)