Fix bug with protocol being blank