fixed bug that didn't make it work on the actual server