fixed a bug in seekbar