Correct localhost issues