Fix choosing side for anchor on resource