Avoid that hash collision causes massive slowdown, see #31

Signed-off-by: BlackEagle <ike.devolder@gmail.com>