fix for date element