Fix bugs in indexing music