fixed a small 1-1 relation issue with EF6