date compare fix bug, comment empty name handling