fixed behaviour for composite types