Fixed initialize atoms to set nbands.