Fixed wrong addition of 0.5 for Hann window