fix complex example