Attempts to fix angular issues when published to server