fix a bug cause by bug