Fixed the bug that made everything not work