Encoding process errors solved