fix return from preprocess