Fix a pointer math bug for closures