Fixed indexing issue for daily_entry array