Fixed buildProfileMat function