Add workaround for spaces forkbomb bug

https://tuwel.tuwien.ac.at/mod/forum/discuss.php?d=47391