Fixed bug with relationships if no arguments passed to relationship functions.