fix params validation