fix code select range