Fixed reference bug where empty days would become not-so-empty if you added osmething to a newly added day