fixed bug affecting nucleus/coda calculation