Fix how many hats handler