Fix a strange bug that I can't reproduce locally