fix bug in decorators