fix params validation failing for 0