Resolving bug in $UserDetail->createDefaults method