Fixed bug with switching on and off collision during simulation when simulation was started with collision off