fix pipelight state