Fix bug caused by encoding mistake