fix instnace call in setTimeout