Fixing attachment file_name = path error