fixed NPE at bundle manager