fix generate objects