fixed the problem with zero sized clusters