Fixed problem with losing precision on max entry count