Fix a bug with looping scripts

The callback entry wouldn't properly copy over data.