improve opacity and fix bug