case 3967 - Fix preprocess function to work with ddb template.