Bug while adding a project to Quality Profile/Quality Gate

Using SonarQube v6.7.4
I have defined a new Quality Profile and Quality Gate and want to add a specific project to it, but sonarqube is not allowing me to do it.
It shows this undefined project all the time, which does not go away.
undefined%20project