Fix to angular app initialisation