Fixed the issue related to dateneeded preservation