Fixed a bug in the noise algorithm, which caused sharp edges