Fixed a bug related to the type of the representations.