Fixed bugs in single relation fields