GRD-114 #resolve Fixed #39 use window.lastLoop