Fixed a bug on dateViewer not appearing