fixed misdefined unsigned long entropsel