Fixed bug from prev. commit where ion density still set.