Fixing "pin" error