fixed slider pInit bug