Fixed appendNormTransformer and using a less hackish way to set the media context