Fix error to avoid duplicate profiles