change kmean empty seed handling method