Fixed user duplication issue so that the correct profiles are loaded