moved compact earlier in get_related_resources to avoid nil errors
moved compact earlier in get_related_resources to avoid nil errors

aina1205/virtualliverf1,aina1205/virtualliverf1,aina1205/virtualliverf1,aina1205/virtualliverf1