Fixed error in generating articles