Fixed a problem checking the relations map, thanks Jakub :)