Fixed 修复foreachelse bug