fix rare bug