Fixes an issue with the playing index not updating properly.