memory leak
fixing double encoding