Fixed some bug
1. relationship cannot be saved
2. create realtionship cannot set empty array