Fix for profile photo index not resetting.