Fix check for allowed projects.