Added check_plain call in preprocess functions