fix bug when setting up pwa systems