Fix wrong processing of '->' for objects