Fixing date js libs when an error appears.