Fix project name check condition