Fixed pin correction bug