fixing bug in decoratorUtils