Fix race preview crash (Fixes #1808)