fix fftsim computation