fix code drawing