Corrected lastName generation