Fixed a bug that did not come to write to JSON breakfast, lunch, dinner only