Reset global_id to view id before return data to client