fix atom bug