Fixed 2d sim bug