fix atom link parsing