Properly set dt and shared fields