fix minOpacity=0 not working, close #6