fixed preferred name bug