fix closure return