fixed a bug that stopped it from running