update opacity parameter, bug fix