Fix preprocessing