Fix NPE (packManager was not set)