Bug fix on corpus initialization