learning material dialog disappears in firefox

Fixes issue #668