Invalid character error fixed