Delete media fixed (issue #106)