Fixed issue with sites not loading correctly