fixed a bug introduced as a result of speed up