Fixes a loading bug