fix pinning