fix code type