fixes some bugs with the time variable in perlin noise test