Bug fix in feeding controller