Fixed errors in initial electron densities