Fixed minor issue
Fixed clean the relations hash else they keep refs to the MP which is free