fix a obscure bug