fix problem with jquer yand closure