fixed some issues with the custom music loading code