Fixed minor bug where anuglar would not load until page refresh