Bugfix for when https not setup on server.