fixed a bug i introduced