fix code element issue