Made callback on afterFrame be repeatable