fixing editing and restoring of media #142