Removing extraneous profiles