Fixed a stupid mistake, but the bug still exists