fixed compilation errors in process_hash