fix in calling of gaussian spread function