Fix error in profiles
Edit to accommodate mAPCA