Fixed GenerateSides