fix order of objects creating