Fix bug in code imported from kissfft