make sure the preprocess event is handled in the right order

this might fix #12