Fixed error in demographics not being saved.