Fixed references bug

The typelist of the references is fixed like in version 2.4.x