Fix non-looping mode and remove unneeded loading and active classes.