how to fix in closure