Fixed attachment ready issue.