fixed a possible race between dereferencing and detabulation