bug fix so particlesystem builds ok the second time round as well