Fix a wrong file call and case sensitive problems