Fix process function.