fix atom tag generation