Fixed resize issue with dates