Fix for invalid hostname