Bug fixes for the sorting and filtering of the profiles.