Fixed relations

Made the relations actually work :)