fixed buglet in atom creation