fix issue of relation access