Fixed recursive preprocessing