fix closure error