fixed sound bug and restore file code