fixes closures for markers