Fixing char error