Fix the modal preview (again)

Fix for commit 2ab9c94e534052a8aaccd97d31c84e4dae8136f0