fixed #311 messed up base relationship type