Fix profile edit functionality