fixed an opacity bug