fixes and media delete
bug fix