fix min elem in anticloclwise