The `callback` should be called once the rendering it's done. That's why this change.