fix compilation error in preparer