fix a bug cause performance bad