Fixed bug related to the use of complex type.