preprocessing bugfix