Fixed a softlock that appeared during stress tests.