the right way to fix in closure