Fix crash on empty name