fixes to datedisplay if there is only one layer

Signed-off-by: Werner Macho <werner.macho@gmail.com>