fixed closure error