PID mask bug fixed