Fixed a bug inserting a new line when some objects are created