fixed some file overwriting and the delete playlist function