Fix preprocess, use correct var