Fixed event order bug for slider change