fixed a newly introduced crash on user mode changes