fixed a bug which could have caused fluctuations