Fixed major bug during market generation