Rename attachment into attribute