prevent name to be null