Fix ips val bug