fixed has bug