fix code view bug