fixes closure