fixed rare bug