fixes app instanciation and #refresh call