Fixed bug causing reverse relation could not be set