fixed closure problem with link command generation