fix #attachment_url with nil