fixed a bug when defining multiple relationship properties