fixed a problem with slider: when playing is resumed, it jumps back to 0