Fix black screen after replaying file.

Fixes ticket #3908